package com.kotlin.lib

/*
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking

fun main() {
    method()
    println("done--------------------")
}

fun method()= runBlocking { // this: CoroutineScope
    val result =  launch {
        delay(2000L)
        println("Task from runBlocking")
    }
    GlobalScope.launch {
        delay(1000)
        println("launch scope is over")
    }

    println("Coroutine scope is over") // 这一行在内嵌 launch 执行完毕后才输出
}*/
